package com.taotao.doctor.controller;

import com.taotao.common.core.domain.Result;
import com.taotao.doctor.domain.po.MedFans;
import com.taotao.doctor.domain.vo.MedFansVo;
import com.taotao.doctor.service.MedFansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/fans")
@RestController
public class MedFansController {

    @Autowired
    private MedFansService medFansService;

    /**
     * 获取粉丝列表
     * @return
     */
    @GetMapping("/getMedFans")
    public Result getMedFansList() {
        List<MedFansVo> medFansList = medFansService.getMedFansList();
        return Result.success(medFansList);
    }

}
